@charset "utf-8";
@import "compass/reset";
@import "compass/utilities/sprites";   
$ui-layout: smart;
$ui-sprite-dimensions: true;
@import "ui/*.png";         
@include all-ui-sprites;
html,body{
    //min-height: 1008px;
    height: 100%;
    -webkit-user-select: none;
}
*{transition-timing-function: ease-in-out;}
a{
    text-decoration: none;
}
a,button,input,area,div{-webkit-tap-highlight-color:rgba(255,0,0,0);}
.f_l { float:left; }
.f_r { float:right; }
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
.hide{
    display: none;
}
body{
    position: relative;
    width: 640px;
    box-shadow: 0 0 160px 0 #eaeaea;
    margin: 0 auto;
    font-size: 24px;
    text-align: center;
    -webkit-overflow-scrolling: touch;
    color: #fff;
    background: #fff;
}
img{
    vertical-align: top;
}
#wrap{
    height: 100%;
    min-height: 1008px;
    width: 640px;
    background: #ffe200;
    padding-bottom: 1px;
}

.page{
    padding-bottom: 1px;
    position: relative;
    width: 640px;
    height: 100%;
    display: none;
}

.page-1{
    display: block;
    background: url(../img/bg.jpg) center no-repeat;
    background-size:cover ;
    .btn-group{
        position: absolute;
        font-size: 0;
        width: 100%;
        bottom: 57px;
        left: 0;
        a{
            display: inline-block;
            margin: 0 25px;
        }
        .ui-start{
            margin: 33px 0 0;
        }
    }
    .music{
        
    }
    .tip{
        position: absolute;
        left: 185px;
        bottom: 310px;
        opacity: 0;
        &.show{
            -webkit-animation: fadeIn 1s forwards,fadeOut 1s forwards 5s;
            animation: fadeIn 1s forwards,fadeOut 1s forwards 5s;
        }
    }
}

.music{
    display: inline-block;
    width: 90px;
    height: 76px;
    background: url(../img/play.png) no-repeat;
    position: absolute;
    top: 25px;
    right: 10px;
    background-size: 95%;
    &.pause{
        background: url(../img/pause.png) no-repeat;
        background-size: 95%;
    }
}

.page-2{
    background: #006ed1;
    padding-bottom: 410px;
    min-height: calc(100% + 1px);
    height: auto;
    box-sizing: border-box;
    .side{
        width: 353px;
        height: 411px;
        background: url(../img/rule-side.png) no-repeat;
        position: absolute;
        left: 0;
        top: 27px;
    }
    .ui-logo{
        display: inline-block;
        position: absolute;
        top: 13px;
        right: 25px;
    }
    .bottom{
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 0;
        height: 410px;
    }
    .ui-guide{
        position: absolute;
        right: 105px;
        top: 26px;
    }
    .ui-start{
        display: inline-block;
        position: absolute;
        left: 130px;
        bottom: 59px;
        z-index: 2;
    }
    .ui-dot{
        display: inline-block;
        position: absolute;
        bottom: 40px;
        left: 209px;
    }
    .content{
        color: #fff;
        font-size: 28px;
        line-height: 40px;
        padding: 0 67px 0 120px;
        text-align: left;
    }
    h3{
        text-indent: 1em;
        font-weight: bold;
        padding: 275px 0 35px 0;
    }
    p{
        text-indent: 1em;
        font-weight: bold;
    }
}

.page-3{
    background: #ffe200;
    min-height: 100%;
    height: auto;
    box-sizing: border-box;
    text-align: left;
    .ui-txt-1{
        display: inline-block;
        margin: 26px 0 0 34px;
    }
    .ui-logo{
        display: inline-block;
        position: absolute;
        top: 18px;
        right: 25px;
        z-index: 2;
    }
    .map-box{
        width: 100%;
        position: relative;
    }
    .map{
        width: 100%;
    }
    .local{
        display: inline-block;
        position: absolute;
        cursor: pointer;
        img{
            position: absolute;
            display: none;
        }
    }
    .local-1{
        width: 380px;
        height: 276px;
        left: 67px;
        top: 190px;
        img{
            left: 204px;
            top: -40px;
        }
    }
    .local-2{
        width: 342px;
        height: 243px;
        left: 250px;
        top: 487px;
        img{
            top: -26px;
            left: -185px;
        }
    }
    .local-3{
        width: 372px;
        height: 335px;
        left: 63px;
        top: 730px;
        img{
            right: -148px;
            top: 30px;
        }
    }
    .local-4{
        width: 300px;
        height: 385px;
        right: 48px;
        top: 1006px;
        img{
            top: 49px;
            left: -123px;
        }
    }
    .local-5{
        width: 198px;
        height: 530px;
        left: 63px;
        top: 1121px;
        img{
            top: 200px;
            right: -203px;
        }
    }
    .local-6{
        width: 305px;
        height: 215px;
        right: 48px;
        bottom: 790px;
        img{
            top: 18px;
            left: -182px;
        }
    }
    .local-7{
        width: 319px;
        height: 255px;
        left: 63px;
        bottom: 511px;
        img{
            left: 16px;
            top: 0;
            left: 160px;
        }
    }
    .btn-group{
        position: absolute;
        width: 100%;
        text-align: center;
        height: 160px;
        left: 0;
        bottom: 46px;
        background: url(../img/ui/dot-2.png) center bottom no-repeat;
        a{
            display: inline-block;
        }
    }
}

.page-4{
    text-align: left;
    .ui-txt-2{
        display: inline-block;
        margin: 24px 0 0 31px;
    }
    .question-box{
        width: 573px;
        margin: 0 auto;
        border: 1px solid #fff;
        background: #fff;
        margin-top: 20px;
        height: 845px;
        position: relative;
    }
    .answer-box{
        padding: 30px 0 0 35px;
    }
    li{
        height: 46px;
        line-height: 46px;
        width: 370px;
        border: 2px solid #000;
        border-radius: 46px;
        margin-bottom: 27px;
        padding: 0 25px;
        font-size: 0;
        color: #000;
        font-weight: bold;
        transition: all 0.3s;
        span{
            font-size: 28px;
            display: inline-block;
            vertical-align: top;
            height: 46px;
            line-height: 46px;
            float: left;
        }
        .item{
            margin-right: 15px;
        }
        i{
            display: block;
        }
        &.state-1{
            background: rgba(0,242,0,0.46);
            color: #006f00;
        }
        &.state-2{
            background: rgba(255,87,0,0.62);
            color: #9e3600;
        }
        &:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
    }
    .question{
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background: #fff;
        display: none;
        &.show{
            display: block;
            -webkit-animation: fadeIn 1s both;
            animation: fadeIn 1s both;
        }
        &.hide{
            display: none;
        }
    }
    .question-1{
        display: block;
        z-index: 2;
    }
    .answer{
        display: -webkit-box;
        -webkit-box-align: center;
    }
}

.page-5{
    //display: block;
    background: url(../img/result.jpg) no-repeat;
    background-size: cover;
    .ui-logo-g{
        display: inline-block;
        position: absolute;
        top: 19px;
        right: 20px;
    }
    .result{
        width: 367px;
        height: 650px;
        position: absolute;
        top: 151px;
        right: 57px;
        img{
            width: 100%;
        }
        .num{
            display: inline-block;
            position: absolute;
            width: 80px;
            text-align: center;
            height: 70px;
            line-height: 70px;
            color: #ff0000;
            font-size: 64px;
            font-weight: bold;
            left: 172px;
            top: 268px;
        }
    }
    .btn-group{
        position: absolute;
        width: 100%;
        text-align: center;
        height: 160px;
        bottom: 50px;
        left: 0;
        background: url(../img/dot.png) center bottom no-repeat;
        a{
            display: inline-block;
        }
    }
}

.layer{
    display: none;
    opacity: 0;
    position: fixed;
    width: 640px;
    height: 100%;
    left: 50%;
    margin-left: -320px;
    top: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    transition: all 0.3s;
    .content{
        text-align: center;
        width: 541px;
        height: 540px;
        position: absolute;
        left: 50%;
        top: 50%;
        margin: -270px 0 0 -270px;
        background: url(../img/layer.png) no-repeat;
    }
    &.show{
        opacity: 1;
    }
}

.layer-nomatch,.layer-fail{
    .ui-fail{
        display: inline-block;
        margin: 83px 0 25px;
    }
    p{
        font-size: 40px;
        font-weight: bold;
        color: #000;
        line-height: 65px;
    }
    .replay{
        font-size: 0;
        display: inline-block;
        width: 221px;
        height: 87px;
        position: absolute;
        left: 50%;
        margin-left: -110px;
        bottom: -30px;
        background: url(../img/replay.png) no-repeat;
    }
}
.layer-fail{
    .ui-txt-4{
        display: block;
        margin: 0 auto;
    }
}

.layer-lottery{
//  .num{
//      display: inline-block;
//      position: absolute;
//      width: 120px;
//      text-align: center;
//      height: 70px;
//      line-height: 70px;
//      color: #ff0000;
//      font-size: 64px;
//      font-weight: bold;
//      left: 245px;
//      top: 142px;
//  }
    p{
        font-size: 40px;
        line-height: 60px;
        color: #000;
        font-weight: bold;
        margin-top: 90px;
        span{
            color: #ff0000;
        }
    }
    a{
        display: inline-block;
    }
    .ui-box{
        margin-top: 26px;
        &.tada{
            -webkit-animation: tada 1s both;
            animation: tada 1s both;
        }
    }
    .ui-lottery-2{
        position: absolute;
        left: 50%;
        margin-left: -110px;
        bottom: -31px;
    }
    .btn-group{
        position: absolute;
        width: 100%;
        bottom: -31px;
        font-size: 0;
        text-align: center;
        a{
            display: inline-block;
            width: 211px;
            height: 76px;
            text-align: center;
            line-height: 76px;
            font-size: 30px;
            color: #000;
            background: #ffe300;
            margin: 0 15px;
            border: 5px solid #000;
            border-radius: 86px;
            font-weight: bold;
        }
    }
}

.layer-register,.layer-register2{
    .ui-txt-6{
        display: block;
        margin-top: 58px;
        margin-left: 135px;
    }
    .ui-txt-8{
        display: block;
        margin: 80px 0 42px 106px;
    }
    .prizeName{
        font-size: 34px;
        font-weight: bold;
        color: #000;
        line-height: 40px;
        text-indent: -1em;
        margin: 5px 0 40px;
    }
    .ui-form{
        margin-left: 50px;
        position: relative;
    }
    .ui-bind{
        display: inline-block;
        position: absolute;
        bottom: -30px;
        margin-left: -110px;
        left: 50%;
    }
    input{
        height: 33px;
        line-height: 33px;
        padding: 10px 28px;
        font-size: 28px;
        margin: 0;
        outline: none;
        left: 92px;
        position: absolute;
        border: 0;
        border-radius: 53px;
        background: transparent;
    }
    #phone{
        width: 296px;
        top: 64px;
    }
    #authcode{
        width: 131px;
        top: 143px;
    }
    .getCode{
        height: 64px;
        width: 163px;
        display: inline-block;
        position: absolute;
        top: 134px;
        right: 0;
    }
    .ui-get{
        display: inline-block;
    }
    .countDown{
        display: inline-block;
        width: 163px;
        height: 62px;
        text-align: center;
        line-height: 54px;
        border: 4px solid #000;
        border-radius: 62px;
        box-sizing: border-box;
        font-size: 24px;
        font-weight: bold;
        background-image: -webkit-linear-gradient(#fff,#e5e5e5);
        color: #000;
        display: none;
    }
}

.layer-info{
    .ui-info{
        margin: 80px 0 0 47px;
        position: relative;
    }
    .ui-complete{
        display: inline-block;
        position: absolute;
        bottom: -30px;
        left: 50%;
        margin-left: -110px;
    }
    input{
        margin: 0;
        padding: 0;
        position: absolute;
        border: 0;
        outline: none;
        -webkit-appearance: none;
    }
    #username{
        height: 33px;
        line-height: 33px;
        padding: 10px 28px;
        font-size: 28px;
        width: 300px;
        left: 93px;
        top: 114px;
        border-radius: 53px;
        background: transparent;
    }
    #birth{
        height: 33px;
        line-height: 33px;
        padding: 10px 28px;
        font-size: 28px;
        width: 300px;
        left: 93px;
        top: 263px;
        border-radius: 53px;
        background: transparent;
    }
    input[type="radio"]{
        display: inline-block;
        width: 45px;
        height: 45px;
        background: url(../img/radio.png) no-repeat;
        &:checked{
            width: 48px;
            height: 47px;
            background: url(../img/checked.png) no-repeat;
        }
    }
    .male{
        left: 87px;
        top: 192px;
    }
    .female{
        left: 218px;
        top: 192px;
    }
}

.layer-tip{
    .ui-hand{
        display: block;
        margin: 77px auto 27px;
    }
    .ui-txt-5{
        display: inline-block;
    }
    .btn-group{
        position: absolute;
        width: 100%;
        bottom: -31px;
        font-size: 0;
        text-align: center;
        a{
            display: inline-block;
            vertical-align: top;
            margin: 0 10px;
        }
        .replay{
            display: inline-block;
            width: 220px;
            height: 81px;
            background: url(../img/replay-m.png) no-repeat;
        }
    }
}

.layer-success{
    .ui-txt-6{
        display: block;
        margin-top: 58px;
        margin-left: 135px;
    }
    .prizeName{
        font-size: 34px;
        font-weight: bold;
        color: #000;
        line-height: 40px;
        text-indent: -1em;
        margin: 5px 0 60px;
    }
    .ui-txt-7{
        display: inline-block;
    }
    .btn-group{
        position: absolute;
        width: 100%;
        bottom: -31px;
        font-size: 0;
        text-align: center;
        a{
            display: inline-block;
            vertical-align: top;
            margin: 0 10px;
        }
        .replay{
            display: inline-block;
            width: 220px;
            height: 81px;
            background: url(../img/replay-m.png) no-repeat;
        }
    }
}

.layui-m-layer{
    .layui-m-layershade{
        background: rgba(0,0,0,0.3);
    }
    .layer-alert,.layer-success{
        width: 450px !important;
        max-width: 450px !important;
        border: 5px solid #000;
        border-radius: 15px !important;
        .layui-m-layercont{
            font-size: 30px;
            color: #000;
            line-height: 60px;
        }
    }
    .layui-m-layercont{
        padding: 80px 30px;
    }
}

.share-box{
    position: fixed;
    width: 640px;
    height: 100%;
    background: rgba(255,255,255,.5);
    left: 50%;
    margin-left: -320px;
    top: 0;
    z-index: 12;
    display: none;
    -webkit-transition: opacity ease .3s;
    opacity: 0;
    z-index: 110;
    &.show{
        opacity: 1;
    }
    img{
        position: absolute;
        right: 27px;
        top: 36px;
    }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@-webkit-keyframes tada {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  10%, 20% {
    -webkit-transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
  }

  30%, 50%, 70%, 90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%, 60%, 80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes tada {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  10%, 20% {
    -webkit-transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
  }

  30%, 50%, 70%, 90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%, 60%, 80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}